<extend name="public:base"/>

<block name="main">
    <div class="new_promotion">
        <div class="public_box">
            <div class="title">奖励详情 [<a href="{:url('user/promote/index')}">返回</a>]</div>
            <div class="contents">
                <div class="cl l28">
                    <div class="dateSearch fl">
                        <form action="{:url('user/promote/detail')}" method="get" class="searchForm">
                            <input type="text" name="start" id="startTime" class="text"
                                   value="{$where.start|default=''}"
                                   data-date="" data-format="mm-yyyy" data-start-view="year" data-min-view="year"/>
                            <input type="submit" class="confirm" value="查&nbsp;看"/>
                        </form>
                    </div>
                    <div class="fr a666">
                        <span class="pl20">已发放奖励：<i class="af60">{$total_paid|default='0.00'}</i>元</span>
                        <span class="pl20">待发放奖励：<i class="af60">{$total_payment|default='0.00'}</i>元</span>
                    </div>
                </div>
                <div class="cl mt30">
                    <table cellspacing="0" cellpadding="0" border="0" class="tableBorder mt10">
                        <thead>
                        <tr>
                            <th>奖励时间</th>
                            <th>金额（元）</th>
                            <th>奖励类型</th>
                            <th>发放状态</th>
                            <th>投资次数</th>
                            <th>发放时间</th>
                        </tr>
                        </thead>
                        <tbody>
                        <notempty name="rebate_list">
                            <volist name="rebate_list" id="v">
                            <tr>
                                <td>{$v.add_time}</td>
                                <td>{$v.reward_amount}</td>
                                <td>{$v.type_name}</td>
                                <td>{$v.status_name}</td>
                                <td>1</td>
                                <td>{$v.payment_time}</td>
                            </tr>
                            </volist>
                            <else/>
                            <tr>
                                <td colspan="6"><p class="tc a999 pt30 pb30">您还未邀请好友，快召唤小伙伴一起赚起来吧!</p></td>
                            </tr>
                        </notempty>
                        </tbody>
                    </table>

                </div>
            </div>
        </div>
    </div>

</block>

<block name="js">
    <!-- 日历插件 -->
    <link rel="stylesheet" href="https://www.jq22.com/jquery/font-awesome.4.6.0.css">
    <link rel="stylesheet" href="__PUBLIC__/js/datepicker/css/foundation-datepicker.css">
    <script src="__PUBLIC__/js/datepicker/js/foundation-datepicker.js"></script>
    <script src="__PUBLIC__/js/datepicker/js/locales/foundation-datepicker.zh-CN.js"></script>
    <script type="text/javascript">
        $('#startTime').fdatepicker({
            format: 'yyyy-mm', pickTime: true
        });
    </script>
</block>

